package com.example.dao.impl;

import com.example.dao.BookDao;

public class BookDaoImpl implements BookDao {

    /*public BookDaoImpl() {
        System.out.println("book dao constructor is running ....");
    }*/
    //测试私有构造方法是否可以运行成功
    //运行成功，说明Spring底层用的是反射
    /*private BookDaoImpl() {
        System.out.println("book dao constructor is running ....");
    }*/
    //测试有参构造函数是否可以
    //不可以
    /*public BookDaoImpl(int i) {
        System.out.println("book dao constructor is running ....");
    }*/

    public void save() {
        System.out.println("book dao save ...");
    }

}
